import { requestClient } from '#/api/request';

/**
 * 登录
 */
export async function loginApi(data: LoginParams) {
  return requestClient.post<LoginResponse>('/api/sysAuth/login', data);
}

/**
 * 获取用户信息
 */
export async function getUserInfoApi() {
  return requestClient.get('/api/sysAuth/userInfo');
}
